package com.china08.yxyapi.repository.mg.huodong;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.china08.yxyapi.entity.mg.huodong.healthcompetition.YxyCompetitionDistrict;

public interface YxyCompetitionDistrictRepository extends MongoRepository<YxyCompetitionDistrict, String> {

    /**
     * 根据区县查询
     * 
     * @param i
     * @return
     */
    List<YxyCompetitionDistrict> findByAreaCodeDistrict(String areaCodeDistrict);

    YxyCompetitionDistrict findTop1ByAreaCodeDistrict(String areaCodeDistrict);
}
